{% extends "base.html" %}

{% import 'includes/forms.html' as forms %}

{% block content %}
<div class="page-header"><h1>Confirmation and Payment</h1></div>
<div>
<table class="table table-striped">
<thead><tr><th>Product  </th><th>Price  </th><th>VAT (included)  </th></tr></thead>
{% for item in order.items %}
<tr><td>{{ item.product.description }}</td><td>{{ item.price }} SEK</td><td>{{ item.product.vat }} %</td></tr>
{% endfor %}
<tr><td><strong>Total</strong></td><td><strong>{{ order.total }} SEK</strong></td><td><strong>{{ order.vat_total }} SEK</strong></tr>
{% for payment in order.payments %}
<tr><td>{{ payment.description }} {{ payment.timestamp.date().strftime('%Y-%m-%d') }}</td><td>{{ payment.amount }}</td></tr>
{% endfor %}
<tr><td>Remaining</td><td>{{ order.remainder }}</td></tr>
</table>
</div>
<div>
<form method="POST" action="{{ action }}" enctype="multipart/form-data">
{{ forms.form_fields(form) }}
{{ forms.action_buttons('Continue') }}
</form>
</div>
{% endblock %}